import request from '@/common/request'

export function FilesSet(data) {
    return request({
        url: '/apiadmin/tool/files/set',
        method: 'post',
        data: data
    })
}

export function delFiles(id) {
    return request({
        url: '/apiadmin/tool/files/remove?id=' + id,
        method: 'get',
    })
}


export function getFilesSet() {
    return request({
        url: '/apiadmin/tool/files/getSet',
        method: 'get',

    })
}

export function getCateList() {
    return request({
        url: '/apiadmin/tool/files/cateTree',
        method: 'get'
    })
}

export function addCate(data) {
    return request({
        url: '/apiadmin/tool/files/cateAdd',
        method: 'post',
        data: data
    })
}

export function editCate(data) {
    return request({
        url: '/apiadmin/tool/files/cateEdit',
        method: 'post',
        data: data
    })
}

export function changeOrder(data) {
    return request({
        url: '/apiadmin/tool/files/cateChangeOrder',
        method: 'post',
        data: data
    })
}

export function delCate(id) {
    return request({
        url: '/apiadmin/tool/files/cateDel/id/' + id,
        method: 'get',
    })
}

export function FilesListPage(data) {
    return request({
        url: '/apiadmin/tool/files/list',
        method: 'post',
        data: data
    })
}
